<#include "../header.html">
<script type="text/javascript" src="js/datepicker/WdatePicker.js"></script>
<script type="text/javascript">
	function alertUsers() {
		JFT.popupPage("userAction.do?method=queryUserAlert", "选择用户", 800, 800);
	}
</script>
<div class="c_nav">
	<span>管理选项：</span>
	<a href="vipOrderAction.do?method=query">管理首页</a>
	<a href="javascript:location.reload()"> | [刷新页面]</a>
</div>
<div class="c_box bg_white">
	<div class="c_topic">VIP列表</div>
    <form name="queryForm" id="queryForm" action="vipOrderAction.do?method=query" method="post">
	<div id="dataQueryArea" class="c_form_6">
		<ul class=" c_form-label-6 l_mb">
			<li>
				<span class="e_label">用户账号：</span>
				<span class="e_input">
					<input type="text" readonly="readonly" onclick="alertUsers()" name="account" id="account" desc="用户账号" value="${account!}"/>
					<input type="hidden" name="userId" id="userId" desc="用户ID" value="${userId!}"/>
				</span>
			</li>
			<li>
				<span class="e_label">订单编号：</span>
				<span class="e_input">
					<input type="text" name="orderNo" id="orderNo" desc="订单编号" value="${orderNo!}"/>
				</span>
			</li>
			<li>
				<span class="e_label">状态：</span>
				<span class="e_select">
					<select name="status" id="status" >
						<option value="">全部</option>
						<option value="0" <#if status?? && status == '0'> selected="selected" </#if>>创建</option>
						<option value="1" <#if status?? && status == '1'> selected="selected" </#if>>成功</option>
						<option value="2" <#if status?? && status == '2'> selected="selected" </#if>>失败</option>
						<option value="3" <#if status?? && status == '3'> selected="selected" </#if>>过期</option>
					</select>
				</span>
			</li>
			<li>
				<span class="e_label">会员卡类型：</span>
				<span class="e_select">
					<select name="cardId" id="cardId" >
						<option value="">全部</option>
						<#list cardList as obj>
							<option value="${obj.id!}" <#if cardId?? && cardId?string==obj.id?string> selected="selected" </#if>>${obj.cardName!}</option>
						</#list>
					</select>
				</span>
			</li>
		</ul>
		<ul class=" c_form-label-6 l_mb">
			<li>
				<span class="e_label">开始时间：</span>
				<span class="e_input">
						<input type="text" name="sTime" id="sTime" desc="开始时间" value="${sTime!}" datatype="date" readonly="readonly" min="2000-01-01" max="2050-12-31"  format="yyyy-MM-dd" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
					</span>
			</li>
			<li>
				<span class="e_label">结束时间：</span>
				<span class="e_input">
						<input type="text" name="eTime" id="eTime" desc="结束时间" value="${eTime!}" datatype="date" readonly="readonly" min="2000-01-01" max="2050-12-31"  format="yyyy-MM-dd" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
					</span>
			</li>
			<li>
				<button type="button" bind="query" bindForm="queryForm" class="l_ml e_btn-form">查询</button>
			</li>
		</ul>
	</div>
    </form>
	<input type="hidden" id="queryParams" name="queryParams" value="${queryParams!}"/>
	<@funcBtn/>
	<!-- 如果需要横向滚动条加c_scroll_tr -->
	<div class="c_table e_center l_mt">
		<table bind="table" checkboxName="dataId" checkAllId="checkedAll">
        	<thead>
			<tr>
				<th><input type="checkbox" id="checkedAll" name="checkedAll"/></th>
				<th>用户账号</th>
				<th>用户名称</th>
				<th>编号</th>
				<th>会员卡</th>
				<th>费用(马力)</th>
				<th>归属(省份或基地)</th>
				<th>状态</th>
				<th>创建时间</th>
			</tr>
            </thead>
            <tbody>
           	<#list list as obj>
            <tr>
            	<td><input type="checkbox" name="dataId" value="${obj.ID!}"></td>
            	<td>${obj.ACCOUNT!}</td>
            	<td>${obj.USER_NAME!}</td>
            	<td>${obj.ORDER_NO!}</td>
				<td><#list cardList as t><#if obj.CARD_ID?string == t.id?string>${t.cardName!}</#if></#list></td>
				<td>${obj.MALI/100.0!}</td>
				<td>${obj.AFFILIATION_NAME!}</td>
				<td><#if obj.STATUS?? && obj.STATUS == 0>创建<#elseif obj.STATUS?? && obj.STATUS == 1>成功<#elseif obj.STATUS?? && obj.STATUS == 2>失败<#else>过期</#if></td>
            	<td>${obj.CREATE_TIME?number_to_datetime!}</td>
            <tr>
            </#list>
            </tbody>
		</table>
	</div>	
	<@page/>
</div>
<#include "../footer.html">